package com.basker.pisces.auth.domain.entity.command;

import com.basker.pisces.auth.domain.entity.AuthUserEntity;
import com.basker.pisces.domain.ISupportEntityLimit;
import com.basker.pisces.domain.command.meta.SaveCommand;
import com.basker.pisces.domain.entity.meta.Entity;

public class ChangePasswordCommand extends SaveCommand implements ISupportEntityLimit {

    public ChangePasswordCommand() {
        this.setName(ChangePasswordCommand.class.getSimpleName());
        this.setRequireFullEntity(false);
        this.addRequiredPropertyAlias("Password");
    }

    @Override
    public Class<? extends Entity> getLimitEntiyType() {
        return AuthUserEntity.class;
    }

    @Override
    public String getRunnerBeanName() {
        return "saveCommandRunner";
    }
}
